package com.thon.service.user;

import java.util.List;

import com.thon.dao.util.Page;
import com.thon.entity.user.Coupon;

public interface CouponService  {
	
	public List<Coupon> listAll();

	public List<Coupon> listByStatus(String status);
	
	public void update(Coupon coupon);
	
	public void save(Coupon coupon);
	
	public Page<Coupon> listCoupon(Page<Coupon>page,int uid);
	
	public Page<Coupon> listUsedCoupon(Page<Coupon>page,int uid);

	public Coupon getCoupon(int uid, String no);
	
	public Coupon getCouponById(int id);

	public Page<Coupon> findCouponByStatus(String value, int id, int pageNo, int pageSize);
	
	public Page<Coupon> findCouponByStatus(Page<Coupon>page,String status);

	public Page<Coupon> findCouponByType(Page<Coupon>page,String type);
	
	public Page<Coupon> findCouponByProject(Page<Coupon>page,int projectId);
	
	public Page<Coupon> findCouponByType(String type, int id, int pageNo, int pageSize);

	public Page<Coupon> findCouponByTime(String value, int id, int pageNo,int pageSize);

	public Page<Coupon> findCouponByCreateDt(String value, int id, int pageNo, int pageSize);

	public void del(Coupon oldCoupon);
	
	public Long countUnusedCoupon(Integer uid);
	
	public Page<Coupon> findAllCoupons(Page<Coupon>page);
	
	public Coupon getCouponByNo(String no);
	
	public Page<Coupon> findCouponPageByProject(Page<Coupon>page,String by,String value,int ProjectId);
	
	public Page<Coupon> findCouponByValue(Page<Coupon>page,String by,String value);
	
	public Page<Coupon> findCouponByProjectId(Page<Coupon>page,int ProjectId);
	
	//用于触发活动券信息发送
	public void sendText(Coupon coupon);
	
	public Page<Coupon> findCouponPages(Page<Coupon> page);
	
	public Page<Coupon> findCouponByProjectId(Page<Coupon>page,int id,int projectId);
	
	public Page<Coupon> findAllCoupons(Page<Coupon>page,int uid);
}
